package com.ruoyi.gbase.service.impl;

import java.util.List;

import com.ruoyi.gbase.domain.GbaseLoadCount;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gbase.mapper.GbaseJobInfoMapper;
import com.ruoyi.gbase.domain.GbaseJobInfo;
import com.ruoyi.gbase.service.IGbaseJobInfoService;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.core.text.Convert;
import com.ruoyi.common.enums.DataSourceType;

/**
 * GBASE入库日志Service业务层处理
 * 
 * @author yys
 * @date 2020-10-27
 */
@Service
public class GbaseJobInfoServiceImpl implements IGbaseJobInfoService 
{
    @Autowired
    private GbaseJobInfoMapper gbaseJobInfoMapper;

    /**
     * 查询GBASE入库日志
     * 
     * @param jobId GBASE入库日志ID
     * @return GBASE入库日志
     */
    @Override
    public GbaseJobInfo selectGbaseJobInfoById(String jobId)
    {
        return gbaseJobInfoMapper.selectGbaseJobInfoById(jobId);
    }

    /**
     * 查询GBASE入库日志列表
     * 
     * @param gbaseJobInfo GBASE入库日志
     * @return GBASE入库日志
     */
    @Override
    public List<GbaseJobInfo> selectGbaseJobInfoList(GbaseJobInfo gbaseJobInfo)
    {
        return gbaseJobInfoMapper.selectGbaseJobInfoList(gbaseJobInfo);
    }

    /**
     * 新增GBASE入库日志
     * 
     * @param gbaseJobInfo GBASE入库日志
     * @return 结果
     */
    @Override
    public int insertGbaseJobInfo(GbaseJobInfo gbaseJobInfo)
    {
        return gbaseJobInfoMapper.insertGbaseJobInfo(gbaseJobInfo);
    }

    /**
     * 修改GBASE入库日志
     * 
     * @param gbaseJobInfo GBASE入库日志
     * @return 结果
     */
    @Override
    public int updateGbaseJobInfo(GbaseJobInfo gbaseJobInfo)
    {
        return gbaseJobInfoMapper.updateGbaseJobInfo(gbaseJobInfo);
    }

    /**
     * 删除GBASE入库日志对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteGbaseJobInfoByIds(String ids)
    {
        return gbaseJobInfoMapper.deleteGbaseJobInfoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除GBASE入库日志信息
     * 
     * @param jobId GBASE入库日志ID
     * @return 结果
     */
    @Override
    public int deleteGbaseJobInfoById(String jobId)
    {
        return gbaseJobInfoMapper.deleteGbaseJobInfoById(jobId);
    }


    @Override
    public List<GbaseLoadCount> selectGbaseLoadCountList1(String rq)
    {
        return gbaseJobInfoMapper.selectGbaseLoadCountList1(rq);
    }
    @Override
    public List<GbaseLoadCount> selectGbaseLoadCountList2(String rq)
    {
        return gbaseJobInfoMapper.selectGbaseLoadCountList2(rq);
    }

    @Override
    public List<GbaseLoadCount> selectGbaseLoadCountList3(String rq)
    {
        return gbaseJobInfoMapper.selectGbaseLoadCountList3(rq);
    }


    @Override
    public List<GbaseLoadCount> selectGbaseLoadCountList4(String rq)
    {
        return gbaseJobInfoMapper.selectGbaseLoadCountList4(rq);
    }

    @Override
    public GbaseLoadCount selectGbaseLoadCount(String rq){
        return gbaseJobInfoMapper.selectGbaseLoadCount(rq);
    };


}
